<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../../public/common.jsp"%>
<body>
	<div style="margin-top: 10px;  margin-left: 10px">
		<shiro:hasPermission name="backend_system_upms_permissions_add">
			<button id="addPermissions" class="layui-btn ">添加根菜单</button>
		</shiro:hasPermission>
	</div>
	
	<table class="layui-table" id="permissionsList" lay-filter="permissionsList"></table>
	<script type="text/html" id="permissionsBar">
	<shiro:hasPermission name="backend_system_upms_permissions_addPermissions">
  		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">添加子菜单</a>
  	</shiro:hasPermission>	
	<shiro:hasPermission name="backend_system_upms_permissions_edit">
		<a class="layui-btn layui-btn-xs" lay-event="edit">编辑菜单</a>
  	</shiro:hasPermission>	
	<shiro:hasPermission name="backend_system_upms_permissions_deletePermission">
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</shiro:hasPermission>	
	</script>
	
	
	
	
	
	<script type="text/html" id="statusTpl">	
  		<shiro:hasPermission name="backend_system_upms_permissions_updataDisablePermissionId">
			<input type="checkbox" name="lock" value="{{d.permissionId}}" title="锁定" lay-filter="status" {{ d.status == 0 ? 'checked' : '' }}>
		</shiro:hasPermission>
	</script>
	<script type="text/html" id="iconTpl">
  		 <i class="larry-icon {{d.icon}}"></i>
	</script>
</body>
<!-- 加载js文件-->
<script type="text/javascript" src="/LarryMS/common/layui/layui.js"></script>
<script type="text/javascript">
	layui.cache.page = 'system/upms/permissions/index';
	layui.config({
		version : "1.0.0",
		base : '/LarryMS/common/'
	}).extend({
		larry : 'js/base'
	}).use('larry');
</script>

</html>